package com.test;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * DECRIPTION: 启动远程服务的类
 * @author 刘文钊
 *
 */
public class Provider {
	public static void main(String[] args) throws IOException {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/spring-context.xml");
		
		System.out.println(context.getDisplayName() + ": here");
		context.start();
		
		System.out.println("服务已经启动！");
		// 为保证服务一直开着，利用输入流的阻塞来模拟
		System.in.read();
	}
}
